package test;

/**
 * stream
 *
 * @author bingo
 * @create 2017-12-06 11:19
 **/
public class Stream {

    public enum Status {
        OPEN, CLOSED;

    };
    public static final class Task {
        private final Status status;
        private final Integer points;

        Task( final Status status, final Integer points ) {
            this.status = status;
            this.points = points;
        }

        public Integer getPoints() {
            return points;
        }

        public Status getStatus() {
            return status;
        }

        @Override
        public String toString() {
            return String.format( "[%s, %d]", status, points );
        }
    }
}
